SpdrReleaseWaitTrigger
SpdrReleaseWaitTrigger records are used to trigger the release of parent orders submitted with startType=WaitTrigger. Note that all parent orders in a risk group will be triggered together.
METADATA
Attribute | Value |
---|---|
Topic | 3985-parent-orders |
MLink Token | SystemData |
Product | SRTrade |
accessType | SELECT,INSERT,DELETE |
Table Definition
Field | Type | Key | Default Value | Comment |
---|---|---|---|---|
accnt | VARCHAR(16) | PRI | '' | |
triggerGroupId | BIGINT | PRI | 0 | |
clientFirm | VARCHAR(16) | PRI | '' | SR client firm |
modifiedBy | VARCHAR(24) | '' | user who last modified this record | |
modifiedIn | enum - SysEnvironment | 'None' | ||
timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' | timestamp of last modification |
PRIMARY KEY DEFINITION (Unique)
Field | Sequence |
---|---|
accnt | 1 |
triggerGroupId | 2 |
clientFirm | 3 |
CREATE TABLE EXAMPLE QUERY
CREATE TABLE `SRTrade`.`MsgSRReleaseWaitTrigger` (
`accnt` VARCHAR(16) NOT NULL DEFAULT '',
`triggerGroupId` BIGINT NOT NULL DEFAULT 0,
`clientFirm` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'SR client firm',
`modifiedBy` VARCHAR(24) NOT NULL DEFAULT '' COMMENT 'user who last modified this record',
`modifiedIn` ENUM('None','Neptune','Pluto','V7_Stable','V7_Latest','Saturn','Venus','Mars','SysTest','V7_Current') NOT NULL DEFAULT 'None',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'timestamp of last modification',
PRIMARY KEY USING HASH (`accnt`,`triggerGroupId`,`clientFirm`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='SpdrReleaseWaitTrigger records are used to trigger the release of parent orders submitted with startType=WaitTrigger. Note that all parent orders in a risk group will be triggered together.';
SELECT TABLE EXAMPLE QUERY
SELECT
`accnt`,
`triggerGroupId`,
`clientFirm`,
`timestamp`
FROM `SRTrade`.`MsgSRReleaseWaitTrigger`
WHERE
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a BIGINT */
`triggerGroupId` = 1234567890
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';
INSERT TABLE EXAMPLE QUERY
INSERT INTO `SRTrade`.`MsgSRReleaseWaitTrigger`(
/* Replace with a VARCHAR(16) */
`accnt`,
/* Replace with a BIGINT */
`triggerGroupId`,
/* Replace with a VARCHAR(16) */
`clientFirm`,
/* Replace with a DATETIME(6) */
`timestamp`
)
VALUES(
'Example_accnt',
1234567890,
'Example_clientFirm',
'2022-01-01 12:34:56.000000'
);
DELETE TABLE EXAMPLE QUERY
DELETE FROM `SRTrade`.`MsgSRReleaseWaitTrigger`
WHERE
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a BIGINT */
`triggerGroupId` = 1234567890
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';
Doc Columns Query
SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='SpdrReleaseWaitTrigger' ORDER BY ordinal_position ASC;